package edu.yctc.weblog.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import edu.yctc.weblog.vo.AdminSignInVO;
import edu.yctc.weblog.vo.UpdateNameVO;
import edu.yctc.weblog.vo.UpdatePasswordVO;

public interface AdminController {

    public String showSignIn();

    public String showIndex(HttpServletRequest request);

    /**
     * 管理员登陆
     * 
     * @param adminSignInVO
     * @return
     */
    public String signIn(AdminSignInVO adminSignInVO, HttpSession httpSession);

    /**
     * 配置页
     * 
     * @param httpServletRequest
     * @return
     */
    public String profile(HttpServletRequest httpServletRequest);

    /**
     * 改密
     * 
     * @param request
     * @param updatePasswordVO
     * @return
     */
    public String updatePassword(HttpServletRequest request, UpdatePasswordVO updatePasswordVO);

    /**
     * 修改登录名和昵称
     * 
     * @param request
     * @param updateNameVO
     * @return
     */
    public String updateName(HttpServletRequest request, UpdateNameVO updateNameVO);

    /**
     * 注销
     * 
     * @param request
     * @return
     */
    public String logout(HttpServletRequest request);

}
